package projectEuler.net;

import junit.framework.TestCase;

public class Problem_046Test extends TestCase {
	public void testCreateListOfPrimes(){
		int tmp[] = Problem_046.createListOfPrimesLeesX(9);
		assertEquals(tmp.length, 4);
		assertEquals(tmp[0], 2);
		assertEquals(tmp[1], 3);
		assertEquals(tmp[2], 5);
		assertEquals(tmp[3], 7);
	}
	public void testCreateListOfPrimes100(){
		int tmp[] = Problem_046.createListOfPrimesLeesX(100);
		assertEquals(tmp.length, 25);
		assertEquals(tmp[24], 97);
	}
	//--
	public void testSmallestNotGoldback(){
		int tmp = Problem_046.smallestNotGoldback();
		assertEquals(tmp, 5777);
	}
}
